package com.globallogic.javatrainings.sergiiivanov.model;

/**
 * This interface implements mechanics for quick and easy way of<br>
 * converting {@link MyArray} collection into String[] array of entities' names<br>
 * each implementation should have String getName() method to fit the mechanics<br>
 * <br>
 * <b>Usage</b> <li>{@link MyArray#toNamesList()}
 * <hr>
 * <b>Example of usage:</b><br>
 * <code>
 *  public class Course implements MyArrayToNamesCovertable {<br>
 *      private String name;<br>
 *      -@Override<br>
 *      public String getName() { return name; }<br>
 *  }<br>
 *  </code> <b>Call:</b><br>
 * <code>
 *  MyArray&lt;Course&gt; c = new MyArray&lt;Course&gt;();<br>
 *  c = university.getCourses();<br>
 *  String[] names = c.{@link MyArray#toNamesList() toNamesList()}; 
 *  </code><br>
 * or easier<br>
 * <code>
 *  String[] names = university.getCourses().{@link MyArray#toNamesList() toNamesList()};
 *  <code>
 * 
 * @author Sergey
 * 
 * 
 */
public interface MyArrayToNamesCovertable {
    /**
     * getName should be implemented by each member class<br>
     * used for getting String[] of names
     * 
     * @return String
     */
    String getName();
}
